package com.czk.service;

import com.czk.bean.HelloProperties;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 默认不放在容器中
 *
 * @Author:ChenZhangKun
 * @Date: 2021/7/5 23:11
 */
public class HelloService {
    @Autowired
    private HelloProperties helloProperties;

    public String sayHello(String hello) {
        return helloProperties.getPrefix() + hello + helloProperties.getSuffix();
    }
}
